package com.william.jdbcplus.core.meta;

import com.william.jdbcplus.common.entity.Entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Builder
public class TableFkInfo {
    @ApiModelProperty(value = "表名")
    private String tableName;

    @ApiModelProperty(value = "外键名")
    private String fkName;

    @ApiModelProperty(value = "不超过30位外键名")
    private String shortFkName;

    @ApiModelProperty(value = "表列名")
    private String fkColumnName;

    @ApiModelProperty(value = "外键关联的主表名")
    private String pkTableName;

    @ApiModelProperty(value = "外键关联的主表列名对应的唯一键名")
    private String pkColumnUkName;

    @ApiModelProperty(value = "外键关联的主表列名对应的唯一键名短名")
    private String pkShortColumnUkName;

    @ApiModelProperty(value = "外键关联的主表列名")
    private String pkColumnName;

    @ApiModelProperty(value = "外键关联实体属性名")
    private String pkFieldName;

    @ApiModelProperty(value = "外键联类")
    private Class<? extends Entity> pkEntity;
}
